
<!DOCTYPE html>
<html>
<link type="text/css" rel="stylesheet" href="giftgiving.css"/>
<!-- Uncomment the line below to include javascript in your webpage -->
<!--<script type="text/javascript" src="giftgiving.js"/>-->
<style type="text/css">
<!--
.STYLE2 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
<head>
<title>Bouquet Details</title>
</head>
    <body>
        <div id="gift-view-id">
            <!-------- Side Bars -------------------------------------------------------------------------->
            <div id="gift-navpane-id" class="gift-navpane">
    			<div id="gift-pets-id" class="gift-types">
                    <a href="cus_home.php" class="STYLE1">Customer Home</a>				</div>
                  <div id="gift-register-id" class="gift-types">  
                    <a href="admin_home.php" class="STYLE1">Admin Home</a>			</div>
                    
        		<div id="gift-register-id" class="gift-types">
                   <a href="admin_reg.php" class="STYLE1">Admin Register</a>    			</div>
                <div id="gift-pets-id" class="gift-types gift-types-selected">
                
                   <a href="admin_Profile.php" class="STYLE1">Admin  Profile</a> 	    </div>
                   <div id="gift-register-id" class="gift-types">
				    <a href="admin_order.php" class="STYLE1">Order Info</a>             </div>
				<div id="gift-register-id" class="gift-types">
				    <a href="admin_customer.php" class="STYLE1">Customer Info</a>             </div>
				<div id="gift-register-id" class="gift-types">
				    <a href="Admin_flower.php" class="STYLE1">Flower Info</a>             </div>
					<div id="gift-register-id" class="gift-types">
				    <a href="FlowersInput.php" class="STYLE1">Add Flower</a>             </div>
				<div id="gift-register-id" class="gift-types">
				    <a href="admin_login.php" class="STYLE1">Logout</a>             </div>
    		</div>
    		<div id="gift-choosepane-id" class="gift-choosepane">
               <!-- Note the onClick handler for this element -->
              <div id="gift-table" onClick="onGiftClick()">
        	   <table>
        			  <th colspan="8"><span class="STYLE2">Flower Information</span></th>
					<form action = "UpdateFlowers.php" method = "post">
        			<?php
					  $flo_name = $_POST['fname'];
					  $flo_size = $_POST['fsize'];
					  //unset($_POST);
					  include('searchFlower.php');
					  $flowerinfo = searchFlower($flo_name, $flo_size);
					   
					        echo "<tr>
						          <td>Name: <input type='text' name='name' value='".$flo_name."' ></td>
							  </tr>";
							echo "<tr>
							      <td>Category: <input type='text' name='category' value='".$flowerinfo['category']."'></td>
								  </tr>";
						    echo "<tr>
							     <td>Color: <input type='text' name='color' value='".$flowerinfo['color']."'></td>
								 </tr>";
						    echo "<tr>
							      <td>Color: <input type='text' name='occasion' value='".$flowerinfo['occasion']."'></td>
								 </tr>";
							echo "<tr>
							     <td>size: <input type='text' name='size' value='".$flo_size."'></td>
								 </tr>"; 
					        echo "<tr>
							     <td>price: <input type='text' name='price' value='".$flowerinfo['price']."'></td>
								 </tr>";
						    echo "<tr>
							     <td>picture address: <input type='text' name='address' value='".$flowerinfo['picture']."'></td>
								 </tr>";
						    echo "<tr>
							     <td>current quantity: <input type='text' name='quantity' value='".$flowerinfo['quantity']."'></td>
								 </tr>";
							echo "<tr>
							     <td>Only add quantity::<br/>
				                      add number: <input type='text' name='add' /></td>
								 </tr>";
						
							echo "
								<tr>
									<td><input type = 'submit' value = 'Submit' ></td>
								</tr>";
							
					?>
					</form>
					
        		</table>

              </div>
            	<div class="footer-container">
            <div class="left">
                <p>Any questions? Let us help you.  Call us: <strong>+65 9861 5555</strong>   &copy; Copyright Flowers Singapore</p>
            </div>
        </div>
                
    		</div>
        </div>
	</body>